<template>
	<view class="pages">
		<view class="content">
			<rich-text :nodes="content"></rich-text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				content:''
			};
		},
		onLoad(type){
			this.getData(type)
		},
		methods:{
			getData(type){
				if(type.type=='gypt'){
					uni.setNavigationBarTitle({
						title:'关于平台'
					})
				}
				
				if(type.title){
					uni.setNavigationBarTitle({
						title:type.title
					})
				}
				this.rq.getData('common/agreement',type).then(res=>{
					this.content = res.data.data
				})
			}
		}
	};
</script>

<style lang="scss" scoped>
	.pages {
		.content {
			background: #ffffff;
			border-radius: 25rpx;
			margin: 20rpx;
			padding: 30rpx 40rpx 300rpx 40rpx;

			p {
				margin-bottom: 20rpx;
				color: #999999;
			}
		}
	}
</style>